﻿using Owin;
using System.Web.Http;

namespace Sustainalytics.ESGRatings.Service
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            app.UseAuthenticationServer();

            var config = new HttpConfiguration();

            WebApiConfig.Register(config);
            config.Formatters.XmlFormatter.SupportedMediaTypes.Clear();
            app.UseWebApi(config);

            config.EnsureInitialized();
        }
    }
}
